<?php 
extract($this->siteMeta);
if ($this->updateMes):?>
<script>
    alert("Save sucessfull !");
</script>    
<?php endif;?>
<h1>CMS SITE <span class="greysubheading">Config</span></h1>
<form id="news-form" action="" method="POST" enctype="multipart/form-data" name="form">
<div id="c_wapper">
    <!-- Site Infomation -->
    <fieldset ><legend>Site Infomation:</legend>
        <table>
            <tbody>
               <tr class="elements">
        		<th scope="row" >Site Name</th>
          		<td align="left">
          			<input class="textbox" type='text' name="sitename" value="<?php echo $this->siteInfo['sitename'] ?>" />
          		</td>
        	</tr>
                
                <tr class="elements">
        		<th scope="row" >Default Languages</th>
          		<td align="left">
                            <input type="textbox" value="<?php echo $default_lang; ?>" name="default_lang">
          		</td>
        	</tr>  
                
                <tr class="elements">
        		<th scope="row" >Page Cache Time</th>
          		<td align="left">
                            <input type="textbox" value="<?php echo $page_cache_time; ?>" name="page_cache_time">
          		</td>
        	</tr>  
                <tr class="elements">
        		<th scope="row" >Page Cache Time</th>
          		<td align="left">
                            <textarea rows="7" cols="60" name="site_off_message"><?php echo $site_off_message; ?></textarea>                            
          		</td>
        	</tr>  
                              
                <tr class="elements">
        		<th scope="row" >Status</th>
          		<td align="left">
                            <input <?php echo $this->siteInfo['status']==1?"checked=\"checked\"":"" ?> type="checkbox" value="Yes" name="status"> Is Avalible
          		</td>
        	</tr>   
            </tbody>
        </table>
    </fieldset>
    <!-- SMTP Config -->
    <fieldset ><legend>SMTP Mail Config:</legend>
        <table>
            <tbody>
               <tr class="elements">
        		<th scope="row" >From Mail</th>
          		<td align="left">
          			<input type='text' name="smtp_from_mail" value="<?php echo $smtp_from_mail; ?>" />
          		</td>
        	</tr>
                <tr class="elements">
        		<th scope="row" >From Name</th>
          		<td align="left">
                            <input type='text' name="smtp_from_name" value="<?php echo $smtp_from_name; ?>" />
          		</td>
        	</tr>
                <tr class="elements">
        		<th scope="row" >SMTP Server</th>
          		<td align="left">
                            <input type='text' name="smtp_host" value="<?php echo $smtp_host; ?>" />
          		</td>
        	</tr>
                
                <tr class="elements">
        		<th scope="row" >SMTP Port</th>
          		<td align="left">
                            <input type='text' name="smtp_port" value="<?php echo $smtp_port; ?>" />
          		</td>
        	</tr>
                <tr class="elements">
        		<th scope="row" >Encryption</th>
          		<td align="left">
                            <input type='text' name="smtp_encryption" value="<?php echo $smtp_encryption; ?>" />
          		</td>
        	</tr>
                <tr class="elements">
        		<th scope="row" >Username</th>
          		<td align="left">
                            <input type='text' name="smtp_user" value="<?php echo $smtp_user; ?>" />
          		</td>
        	</tr>
                <tr class="elements">
        		<th scope="row" >Password</th>
          		<td align="left">
                            <input type='text' name="smtp_pass" value="<?php echo $smtp_pass; ?>" />
          		</td>
        	</tr>
            </tbody>
        </table>
         
    </fieldset> 
<table>
<tr>
  <td>
      <button type="submit" id="button">Update</button>
  </td>
</tr>
</table>
</div>
    
</form>

